#!/usr/local/bin/python3
# -*- coding: UTF-8 -*-
"""
@author:apple
@file:属性隐藏.py
@time:2021/08/31
"""

class Person:
    """
    在类属性或者对象属性前面加上 __ ,在类执行定义时会在该属性前面 加上 _类名
    """
    __name = '1111'

    def __init__(self,age):
        self.__age = age


if __name__ == '__main__':
    pass
    per = Person(21)
    print(Person.__dict__)
    print(per.__dict__)

